package com.wanxi.api;

import java.util.Arrays;

public class StringArray {
    public static void main(String[] args) {
        String a="12 43 56 53 23";
        String[] s = a.split(" ");
        System.out.println(s.length);
        System.out.println(Arrays.toString(s));
        int [] arr=new int[s.length];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=Integer.parseInt(s[i]);
        }
        System.out.println(Arrays.toString(arr));
    }
}
